package com.hzlj.position.config.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fz.common.base.core.JacksonTypeHandlerIgnoreNull;
import com.hzlj.position.config.common.dto.operatorActivation.OperatorActivationExtDTO;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * 定位-运营商开通(OperatorActivation)实体类
 *
 * @author lifh
 * @since 2023-08-18 09:27:02
 */
@Data
@ToString
@TableName(value="operator_activation",autoResultMap = true)
public class OperatorActivation {
    /**
    * 主键
    */
    @TableId(type = IdType.INPUT,value = "id")
    private String id;
    /**
    * 运营商配置Id
    */
    @TableField(value = "operator_config_id")
    private String operatorConfigId;
    /**
     * 矫正ID(jz_jbxx)
     */
    @TableField(value = "jz_id")
    private String jzId;
    /**
    * 姓名
    */
    @TableField(value = "xm")
    private String xm;
    /**
    * 手机号
    */
    @TableField(value = "sjh")
    private String sjh;
    /**
    * 机构code
    */
    @TableField(value = "jg_code")
    private String jgCode;
    /**
    * 机构名称
    */
    @TableField(value = "jg_mc")
    private String jgMc;
    /**
    * 定位渠道,dict-LOCATE_CHANNEL
    */
    @TableField(value = "channel")
    private String channel;
    /**
    * 开通状态,dict-OPERATOR_ACTIVATION
    */
    @TableField(value = "activation")
    private String activation;
    /**
    * 开通时间
    */
    @TableField(value = "activation_time")
    private Date activationTime;
    /**
    * 取消时间
    */
    @TableField(value = "deactivate_time")
    private Date deactivateTime;
    /**
    * 累计开通秒数
    */
    @TableField(value = "activation_seconds")
    private Long activationSeconds;
    /**
    * 开通取消参数,json-OperatorActivationExtDTO
    */
    @TableField(value = "ext",typeHandler = JacksonTypeHandlerIgnoreNull.class)
    private OperatorActivationExtDTO ext;
    /**
    * 是否有效
    */
    @TableField(value = "valid")
    private Boolean valid;
    /**
    * 更新时间
    */
    @TableField(value = "update_time")
    private Date updateTime;
    /**
    * 更新人
    */
    @TableField(value = "updater_uid")
    private String updaterUid;
    /**
    * 更新人姓名
    */
    @TableField(value = "updater_name")
    private String updaterName;
    /**
    * 创建时间
    */
    @TableField(value = "create_time")
    private Date createTime;
    /**
    * 创建人
    */
    @TableField(value = "creator_uid")
    private String creatorUid;
    /**
    * 更新人姓名
    */
    @TableField(value = "creator_name")
    private String creatorName;
}
